#include "reg52.h"
typedef unsigned int u16;	//??????????????
typedef unsigned char u8;


void uart_init(u8 baud)
{
	TMOD|=0X20;	//?????????2
	SCON=0X50;	//???????1
	PCON=0X80;	//?????
	TH1=baud;	//????????
	TL1=baud;
	ES=1;		//??????
	EA=1;		//?????
	TR1=1;		//?????		
}